#include "ListenThread.h"

ListenThread::ListenThread()
{

}

void *ListenThread::Process()
{
    WriteLog(NOTICE, "Create listen thread[%d] successfully.", (int32)this->GetThreadID());

    ConnPool::Instance()->Start();

    while(!SAFE_STOP_FLAG)
    {
        ConnPool::Instance()->CheckSocket();
    }

    ConnPool::Instance()->Stop();

    WriteLog(NOTICE, "Listen thread[%d] exit successfully.", (int32)this->GetThreadID());
    return NULL;
}
